﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using nwrole.lib;

namespace nwrole.PluginService {
    static class Program {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>

        public static void Main(string[] args) {
            if (args.Length == 0)
                return;

            /*string pluginProviderName = args[4];
            IPluginProvider pluginProvider = null;

            switch(pluginProviderName) {
                case "AzurePluginProvider":
                    pluginProvider = new AzurePluginProvider
            }*/

            ServiceBase.Run(new PluginService(args[0], new Guid(args[1]), args[2], Convert.ToInt32(args[3]), Convert.ToInt32(args[4])));
        }
    }
}
